package cn.smile.business.log;

import cn.smile.bean.dto.log.BanAddressDTO;
import cn.smile.bean.entity.log.BanAddress;
import cn.smile.bean.form.log.ban.BanAddressAddForm;
import cn.smile.bean.form.log.ban.BanAddressQueryForm;
import cn.smile.commons.domain.IBaseService;

import java.util.List;

/**
 * @author smile-jt
 */
public interface IBanAddressService extends IBaseService<BanAddress> {

    /**
     * 写入IP到Redis
     */
    void writeIpToRedis();

    /**
     * 新增限制访问IP
     *
     * @param form 新增参数
     * @return 新增结果
     */
    Boolean addInfo(BanAddressAddForm form);

    /**
     * 列表查询
     *
     * @param form 查询参数
     * @return 查询结果
     */
    List<BanAddressDTO> queryList(BanAddressQueryForm form);
}
